<template>
	<view class="rechargeRecord">
		<SwitchPatient balance :id="Data.optionId" :fun='swit'></SwitchPatient>
		<rechargeRecordDeta :id="Data.id" :type="'online'"></rechargeRecordDeta>
	</view>
</template>

<script setup>
	import SwitchPatient from '@/components/SwitchPatient.vue'
	import rechargeRecordDeta from '@/pages/selfPayment/rechargeRecord/rechargeRecordDeta.vue'
	import {
		reactive
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'
	const Data = reactive({
		id: 0,
		optionId: 0,
	})
	const swit = (v) => {
		Data.id = v.id
	}
	onLoad((options) => {
		options.id && (Data.optionId = options.id)
	})
</script>

<style lang="less" scoped>
	.rechargeRecord {
		width: 750rpx;
	}
</style>
